<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Login page</title>
  </head>
  <body>
    <div>
      <g:if test="${flash.message}">
        <div>${flash.message}</div>
      </g:if>
      <p>Witaj</p>
      <form action="handleLogin">
        <span>
          <label for="login"/>
          Logowanie:
        </span>
        <g:select 
          name="userName"
          from="${User.list()}"
          optionKey="userName"
          optionValue="userName"
          >
        </g:select>
        <div>
          <span><g:actionSubmit action="handleLogin" value="Loguj"></g:actionSubmit></span>
        </div>
      </form>
    </div>
  </body>
</html>